package cn.yiueil;

/**
 * 静态内部类实现
 */
public class InnerStaticSingleton {
    private static InnerStaticSingleton innerStaticSingleton;

    private InnerStaticSingleton() {

    }

    private static class InnerStaticSingletonHolder{
        private static final InnerStaticSingleton innerStaticSingleton = new InnerStaticSingleton();
    }

    public static InnerStaticSingleton getInstance() {
        return InnerStaticSingletonHolder.innerStaticSingleton;
    }
}
